<template>
  <div class="common-page f-c">
    <BackPage title="精准帮办管理" />
    <div class="tabs f-r a-c">
      <div
        v-for="item in tabs"
        :key="item.value"
        :class="['tab-item f-1', activeTab === item.value ? 'active' : '']"
        @click="activeTab = item.value"
      >{{ item.name }}</div>
    </div>
    <component :is="activeTab" />
  </div>
</template>

<script>
import Page1 from './common'
import Page2 from './plan'
import Page3 from './line'
import Page4 from './accurates'
export default {
  name: 'Assistant',
  components: {
    Page1,
    Page2,
    Page3,
    Page4
  },
  data() {
    return {
      activeTab: 'Page1',
      tabs: [
        { value: 'Page1', name: '普通咨询' },
        { value: 'Page2', name: '计划变更' },
        { value: 'Page4', name: '精准帮办' },
        { value: 'Page3', name: '外线联报' },
      ]
    }
  },
  methods: {}
}
</script>

<style scoped lang="scss">
.user-page {
  position: relative;
}
.tabs {
  width: 578px;
  height: 48px;
  background: #E6EDF5;
  border-radius: 24px 24px 24px 24px;
  padding: 0 16px;
  .tab-item  {
    height: 40px;
    border-radius: 20px 20px 20px 20px;
    text-align: center;
    color: #0A1629;
    line-height: 40px;
    font-size: 16px;
    &.active {
      background-color: #3F8CFF;
      color: #fff;
    }
  }
}
</style>
